#ifndef ARRAY_H
#define ARRAY_H
#include <cstring>

struct Array {
	explicit Array(size_t);
	Array(const Array&);
	Array& operator=(const Array&);
	~Array();

	void push_back(int);
	void set(size_t, int);
	int get(size_t) const;
	size_t get_size() const;

private:
	void swap(Array&);
	
	size_t size;
	size_t capacity;
	int* data;
};

#endif
